package com.train.pattern.strategy.v2.pay;


public class Test {

    public static void main(String[] args) {
        Account aliAccount=new Account("1","AliPay",700);
        Account wechatAccount=new Account("2","WechatPay",1500);
        Account jdAccount=new Account("3","JdPay",300);
        Account unionAccount=new Account("4","UnionPay",4000);


        Order order = new Order("1","2021011401000323",9);
        User user=new User(1,"张工", MemberTypeEnum.COMMON.getCode());
        user.setAccount(aliAccount);

        MsgResult msgResult=order.pay(user);
        System.out.println(msgResult.toString());
    }


}
